export const defaultArr = [0, 1, 2];

export const setLengthZero = function () {
    this.arr.length = 0;
};
export const arrHandle = function (type) {
    switch (type) {
        case "push":
            this.arr.push(1);
            break;
        case "RealPush":
            Array.prototype.push.call(this.arr, 1);
            break;
        case "pop":
            this.arr.pop();
            break;
        case "RealPop":
            Array.prototype.pop.call(this.arr);
            break;
        default:
            break;
    }
}